package com.rtu.domain;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.alibaba.fastjson.JSONArray;

public class WPProject {
    private Integer id;
    private String projectName;
    private String image;
    private String jdbcDriver;
    private String jdbcUrl;
    private String jdbcUserName;
    private String jdbcPassword;
    private String tableName;
    private String gatewayField;
    private String gatherDataSql;
    private Date createTime;
    private Date updateTime;
    
    private List<String> imageArr;
    
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getJdbcDriver() {
		return jdbcDriver;
	}
	public void setJdbcDriver(String jdbcDriver) {
		this.jdbcDriver = jdbcDriver;
	}
	public String getJdbcUrl() {
		return jdbcUrl;
	}
	public void setJdbcUrl(String jdbcUrl) {
		this.jdbcUrl = jdbcUrl;
	}
	public String getJdbcUserName() {
		return jdbcUserName;
	}
	public void setJdbcUserName(String jdbcUserName) {
		this.jdbcUserName = jdbcUserName;
	}
	public String getJdbcPassword() {
		return jdbcPassword;
	}
	public void setJdbcPassword(String jdbcPassword) {
		this.jdbcPassword = jdbcPassword;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public List<String> getImageArr() {
		try {
			if(StringUtils.isNotBlank(image)) {
				return JSONArray.parseArray(image, String.class);
			}
		} catch (Exception e) {
			
		}
		return imageArr;
	}
	public void setImageArr(List<String> imageArr) {
		this.imageArr = imageArr;
	}
	public String getGatewayField() {
		return gatewayField;
	}
	public void setGatewayField(String gatewayField) {
		this.gatewayField = gatewayField;
	}
	public String getGatherDataSql() {
		return gatherDataSql;
	}
	public void setGatherDataSql(String gatherDataSql) {
		this.gatherDataSql = gatherDataSql;
	}
}
